package com.suyang.syt.model;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "SYS_USER_GROUP")
@SuppressWarnings("serial")
public class UserGroup extends BaseEntity {

	/** 用户id */
	private long userId;

	/** 组id */
	private long groupId;

	/** 组logo */
	private String logo;

	/** 是否 是当前家校通管理员 */
	private int isAdmin;

	public UserGroup() {
	}
	
	public UserGroup(long userId, long groupId, String logo, int isAdmin) {
		this.userId = userId;
		this.groupId = groupId;
		this.logo = logo;
		this.setIsAdmin(isAdmin);
	}

	public UserGroup(long userId, long groupId, String logo) {
		super();
		this.userId = userId;
		this.groupId = groupId;
		this.logo = logo;
	}

	public UserGroup(long userId, long groupId) {
		super();
		this.userId = userId;
		this.groupId = groupId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getGroupId() {
		return groupId;
	}

	public void setGroupId(long groupId) {
		this.groupId = groupId;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public int getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(int isAdmin) {
		this.isAdmin = isAdmin;
	}

}
